Handle non-baseline supporting subclasses overriding baseline supporting classes
authorAlexander Larsson <alexl@redhat.com>
Wed, 27 Mar 2013 09:22:14 +0000 (10:22 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 23 Apr 2013 03:58:48 +0000 (05:58 +0200)
commit316d4504213689a9e81f010ad230a4ce86b17803
treee552c2c62b3f24985ecc79993d92049c6e4a5d17
parentc7b4dd5f9dad97dd4d5f1fa13d8ff1113d7668b3
Handle non-baseline supporting subclasses overriding baseline supporting classes

If a subclass (say a child of GtkButton) overrides the non-baseline
size request methods we need to call these, rather than the new
get_height_and_baseline_for_width method.

In order to handle this we make the default for this method to be
NULL, and instead check at runtime which method to call. If any
non-baseline vfunc has changed in a class but the baseline one
hasn't, then we can't use the baseline one.
gtk/gtksizerequest.c
gtk/gtkwidget.c
gtk/gtkwidgetprivate.h